﻿namespace QiangPiao
{
    using System;

    internal static class My
    {
        private static MyApplication _app;
        private static object _appSyncRoot = new object();

        public static MyApplication Application
        {
            get
            {
                if (_app == null)
                {
                    lock (_appSyncRoot)
                    {
                        if (_app == null)
                        {
                            _app = new MyApplication();
                        }
                    }
                }
                return _app;
            }
        }
    }
}

